import request from "@/utils/request";

// 项列表
export function GetMaintainItemsList_Page(data) {
  return request({
    url: "api/Maintain/GetMaintainItemsList_Page",
    method: "post",
    data: data,
  });
}

// 项添加
export function AddMaintainItem(data) {
  return request({
    url: "api/Maintain/AddMaintainItem",
    method: "post",
    data: data,
  });
}

// 项修改
export function EditMaintainItem(data) {
  return request({
    url: "api/Maintain/EditMaintainItem",
    method: "post",
    data: data,
  });
}

// 项删除
export function DelMaintainItem(data) {
  return request({
    url: "api/Maintain/DelMaintainItem",
    method: "post",
    data: data,
  });
}

// 方案列表
export function GetMaintainPlanList_Page(data) {
  return request({
    url: "api/Maintain/GetMaintainPlanList_Page",
    method: "post",
    data: data,
  });
}

// 方案添加
export function AddMaintainPlan(data) {
  return request({
    url: "api/Maintain/AddMaintainPlan",
    method: "post",
    data: data,
  });
}

// 方案修改
export function EditMaintainPlan(data) {
  return request({
    url: "api/Maintain/EditMaintainPlan",
    method: "post",
    data: data,
  });
}

// 方案删除
export function DelMaintainPlan(data) {
  return request({
    url: "api/Maintain/DelMaintainPlan",
    method: "post",
    data: data,
  });
}

// 方案详情
export function GetMaintainPlanDetail(data) {
  return request({
    url: "api/Maintain/GetMaintainPlanDetail",
    method: "post",
    data: data,
  });
}

// 开始保养
export function DeviceStartMaintain(data) {
  return request({
    url: "api/Device/DeviceStartMaintain",
    method: "post",
    data: data,
  });
}

// 完成保养
export function DeviceEndMaintain(data) {
  return request({
    url: "api/Device/DeviceEndMaintain",
    method: "post",
    data: data,
  });
}

// 保养详情
export function GetMaintainDataDetail(data) {
  return request({
    url: "api/Maintain/GetMaintainDataDetail",
    method: "post",
    data: data,
  });
}

// 获取设备绑定的保养方案
export function GetDeviceBindMaintainPlanList(data) {
  return request({
    url: "api/Device/GetDeviceBindMaintainPlanList",
    method: "post",
    data: data,
  });
}

// 保养记录
export function GetMaintainDataList_Page(data) {
  return request({
    url: "api/Maintain/GetMaintainDataList_Page",
    method: "post",
    data: data,
  });
}
